<?php

$package = $_GET['package'];
$file = $_GET['file'];
$ver = $_GET['ver'];

if (!$ver) $ver = 'actual';
if (!$file) {
    $file = "$package-$ver.pk3";
    $ver = 'pk3s';
}

if ($file) echo file_get_contents("$package/actual/$file");

?>
